
public class Code011 {
	public static void main(String[] args) {
		int a = 1;
		int b = 0;
		int c = 0;
		while(b < 49){
		b=a*7;
		c+=b;
		a++;
		}
		System.out.println(c);
	}
}
